#ifndef REEL_H
#define REEL_H

#include "constante.h"
#include "rationnel.h"
#include "noncomplexnumber.h"

class Real : public NonComplexNumber
{
    double val;
public:

    Real(double);
    Real(const Fraction&);
    Real(const Integer&);

    Constante* operator+(const Constante&)const;
    Constante* operator*(const Constante&)const;
    Constante* operator-(const Constante&)const;
    Constante* operator/(const Constante&)const;
    Constante* operator-()const;

    std::string print()const {
        std::stringstream ss;
        ss << val;
        return ss.str();
    }

    double getVal()const{return val;}
};

#endif // REEL_H
